﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Com.Toook.AutoDownloadHtml.DownloadHtml.ParseObj
{
    /// <summary>
    /// 分页规则:1、按数字自动增长 2、根据下一页Rule获取下一页Url 3、固定数字宽度自动增长
    /// </summary>
    public class PageRule
    {
        /// <summary>
        /// 获取下一页的规则
        /// </summary>
        Rule NextPageRule = new Rule();
        /// <summary>
        /// 不规则的分类页面URL列表
        /// </summary>
        public List<string> SpecialUrl = new List<string>();

        /// <summary>
        /// 按顺序增长的开始序号
        /// </summary>
        public int StartNum;
        
        /// <summary>
        /// 最大页数
        /// </summary>
        public int MaxNum;
       
        /// <summary>
        /// 基地址
        /// </summary>
        public string BaseUrl;
        
        /// <summary>
        /// 分页开始字符串
        /// </summary>
        public string StartStr;
        
        /// <summary>
        /// 分页结束字符串
        /// </summary>
        public string EndStr;

        /// <summary>
        /// 分页序号增长规则
        /// </summary>
        public PageType PageType;
    }
}
